<?php
/*
 * Creative Framework External Libraries
 * Hybrid (Imported code from Generation Two)
 */
require_once('recaptchalib.php');
$publickey = "6Ld-PwkAAAAAANoxKLb7q_hxafGXElY4ZGmjYfeP";
$privatekey = "6Ld-PwkAAAAAAEE589tiXF_RytwO3ZJQMQLUdwNW";
$resp = null;
$error = null;

class recaptcha {
	function check_answer($response, $challenge) {
		global $publickey, $privatekey, $resp, $error;
		$resp = recaptcha_check_answer($privatekey, $_SERVER["REMOTE_ADDR"],
			$challenge, $response);
		if($resp->is_valid) return true;
		else return false;
	}
	
	function get_html() {
		global $publickey, $error;
		return recaptcha_get_html($publickey, $error);
	}
}